<template>
	<div class="page-header col-xs-offset-2 col-xs-8">
		<h2>Vue路由测试</h2>
		<button @click="handleBack">←后退</button>
		<button @click="handleForward">前进→</button>
		<button @click="testGo">测试一下go</button>
	</div>
</template>

<script>
	export default {
		name:'Header',
		methods:{
			handleBack(){
				this.$router.back()
			},
			handleForward(){
				this.$router.forward()
			},
			testGo(){
				this.$router.go(3)
			}
		}
	}
</script>
